package com.example.fooservice.config;

import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

import java.util.Arrays;

/**
 * TODO
 *
 * @author zhangjun3
 * @date 2022/3/5 10:07
 */
@Configuration
public class HttpMessageCoverterConfig {

    @Bean
    public HttpMessageConverters httpMessageConverters() {
        return new HttpMessageConverters(Arrays.asList(new MappingJackson2HttpMessageConverter()));
    }
}
